package org.budo.launcher.service.config;

import java.util.Map;

import lombok.Getter;
import lombok.Setter;

/**
 * @author lmw
 */
@Getter
@Setter
public class ServletConf {
    private String servletName;

    private Class<?> servletClass;

    private Map<String, String> initParamMap;

    private Integer loadOnStartup;

    private String[] urlPattern;

    public ServletConf(String servletName, Class<?> servletClass, Map<String, String> initParamMap) {
        this.setInitParamMap(initParamMap);
        this.setServletClass(servletClass);
        this.setServletName(servletName);
    }

    @Override
    public String toString() {
        return super.toString() + ", servletName=" + this.getServletName() + ", servletClass=" + this.getServletClass();
    }
}